/**
 * @file       Char.h
 * @brief      TODO
 * @author     Huabo Zheng
 * @date       Jan 12, 2012
 * @Copyright  2012, www.netgear.com Inc. All rights reserved.
 */

#ifndef CHAR_H_
#define CHAR_H_

#include <Frame.h>

namespace NS_LCD_AFW
{

class CChar: public CFrame
{
public:
	CChar();

protected:
	virtual ~CChar();
public:
	virtual void setChar(char c);
	virtual char getChar() const;

	virtual int onDraw(IDisplay *pDisplay);

protected:
	virtual int onCreate();
	virtual int onUpKeyPress();
	virtual int onDownKeyPress();
	virtual void onSetFocus();
	virtual void onLostFocus();

private:
	virtual int onLeftKeyPress();
	virtual int onRightKeyPress();
    virtual int onEnterKeyPress();
    virtual int onEscKeyPress();

protected:
	char m_cChar;
private:
	DISABLE_COPY_CONSTRUCTOR_AND_ASSIGN_REFERENCE(CChar);
};

} /* namespace NS_LCD_AFW */
#endif /* CHAR_H_ */
